import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class Commontest {
    private static final byte[] bytes=new byte[]{1,2};
    public static void main(String[] args) {
        List list = new ArrayList<>();
        if (list == null) {

        }
        for (Object o : list) {

        }
        if (list != null) {

        }
    }

    @Test
    public void test1(){
        Commontest.bytes[1]=3;
//        结论：final表示指向不可改变。只可指向一个对象。
//        bytes=new byte[2];
        for (byte aByte : bytes) {
            System.out.println(aByte);
        }
    }

    public void test() {
        int i = 1;
    }
    public void testMethod(){
        switch("123"){
            case "1":
                System.out.println("1");
                break;
            case "123":
                System.out.println(2);
                break;
        }
    }

    @Test
    public void testAutoBoxing(){
        Integer integer = new Integer("1");
        Integer integer1 = integer+2;

    }

    public void method() {
        Integer integer = new Integer("1");
        Integer integer1 = Integer.valueOf("1");
        Integer integer2 = 1;
        System.out.println(integer);
        System.out.println(integer == 1);
        System.out.println(integer.equals(1));
    }
    @Test
    public void testLong(){
        long l = 1111111111L;
        Integer integer = Integer.parseInt(String.valueOf(l));
    }

    public void test11(){

    }
}
